{% extends "layouts" ~ DIR ~ "default.twig" %}

{% block title %}{{ "Comment Settings" | translate("comments") }}{% endblock %}

{% block content %}
<h2>{{ "Comment Settings" | translate("comments") }}</h2>
<form id="comment_settings" class="split" action="{{ url('comment_settings') }}" method="post" accept-charset="UTF-8">
<fieldset role="presentation">
<p>
<label for="notify_site_contact">{{ "Site Notifications" | translate("comments") }}</label>
{#- -#}
<input type="checkbox" class="checkbox" name="notify_site_contact"  id="notify_site_contact"{{ site.module_comments.notify_site_contact | checked }}>
<small>
{{ "Notify the site contact by email when a comment is added." | translate("comments") }}
</small>
</p>
<p>
<label for="notify_post_author">{{ "Author Notifications" | translate("comments") }}</label>
{#- -#}
<input type="checkbox" class="checkbox" name="notify_post_author"  id="notify_post_author"{{ site.module_comments.notify_post_author | checked }}>
<small>{{ "Notify the post author by email when a comment is added." | translate("comments") }}</small>
</p>
<p>
<label for="default_comment_status">{{ "Default Comment Status" | translate("comments") }}</label>
{#- -#}
<select name="default_comment_status" id="default_comment_status">
{% set default_comment_status = site.module_comments.default_comment_status %}
{% for key, val in comments_status %}
<option value="{{ key }}"{{ key | selected(default_comment_status) }}>
{{ val }}
</option>
{% endfor %}
</select>
</p>
<p>
<label for="code_in_comments">{{ "HTML in Comments" | translate("comments") }}</label>
{#- -#}
<input type="checkbox" class="checkbox" name="code_in_comments"  id="code_in_comments"{{ site.module_comments.code_in_comments | checked }}>
<small>{{ "Allow some groups of users to enter HTML directly in comment text." | translate("comments") }}</small>
</p>
<p>
<label for="allowed_comment_html">
{{ "Allowed HTML" | translate("comments") }}
<span class="sub">{{ "(comma separated)" | translate("comments") }}</span>
</label>
{#- -#}
<input class="text code" type="text" name="allowed_comment_html" value="{{ comments_html | fix(true, true) }}" id="allowed_comment_html">
<small>
{{ "HTML tags that can be added by users, Markdown filtering, and modules." | translate("comments") }}
</small>
</p>
<p>
<label for="comments_per_page">{{ "Comments Per Page" | translate("comments") }}</label>
{#- -#}
<input class="text digits" type="number" min="1" name="comments_per_page" value="{{ site.module_comments.comments_per_page | fix(true) }}" id="comments_per_page">
<small>
{{ "Themes decide whether or not to paginate comments." | translate("comments") }}
</small>
</p>
<p>
<label for="enable_reload_comments">{{ "Reload Comments" | translate("comments") }}</label>
{#- -#}
<input type="checkbox" class="checkbox" name="enable_reload_comments"  id="enable_reload_comments"{{ site.module_comments.enable_reload_comments | checked }}>
<small>
{{ "Show newly added comments (up to the maximum number per page)." | translate("comments") }}
</small>
</p>
<p>
<label for="auto_reload_comments">{{ "Reload Interval" | translate("comments") }}</label>
{#- -#}
<input class="text digits" type="number" min="10" max="3600" name="auto_reload_comments" value="{{ site.module_comments.auto_reload_comments | fix(true) }}" id="auto_reload_comments">
<span class="sub">{{ "(seconds)" | translate("comments") }}</span>
</p>
<p class="buttons">
<button type="submit" class="yay">
{{ "Update" | translate }}
</button>
</p>
<input type="hidden" name="hash" value="{{ authenticate() }}" id="hash">
</fieldset>
</form>
{% endblock %}
